﻿namespace HBKY.Shop.Model.Enum
{
    /// <summary>
    /// 异常状态码 参考 Microsoft.AspNetCore.Http.StatusCodes
    /// </summary>
    public enum StatusCodeEnum
    {
        None = 110,
        Status200OK = 200,
        Status400BadRequest = 400,
        Status401Unauthorized = 401,
        Status403Unauthorized = 403,
        Status404NotFound = 404,
        Status500InternalServerError = 500,
        Status1101BusinessError = 1101,
        Status1102ArgumentError = 1102,
        Status1103ParamsError = 1103,
        Status1120LoginFail = 1120,
        Status1199UnknowError = 1199,
    }

    /*参考 Microsoft.AspNetCore.Http.StatusCodes
     * Status200OK =200 返回成功
     * Status400BadRequest = 400  错误请求
     * Status401Unauthorized =401 授权失败
     * Status403Unauthorized =403 权限不足
     * Status500InternalServerError = 500 服务器错误
     * Status1101BusinessError = 1101,业务异常
     * ArgumentException = 1102 参数异常
     * Status1103ParamsException = 1103,filter传参数校验失败
     */
}